<template>
  <div style="height: 100%; position: relative">
    <headerNav />
    <div
      class="section"
      :style="{ backgroundImage: 'url(' + mechanismbg + ')' }"
    >
      <div class="headertext">星球机制</div>
      <div class="mainitem">
        <div
          class="text_bg"
          :style="{ backgroundImage: 'url(' + mechanismtext + ')' }"
        >
          <div>共建</div>
        </div>
        <div
          class="text_bg"
          :style="{ backgroundImage: 'url(' + mechanismtext + ')' }"
        >
          <div>共治</div>
        </div>
        <div
          class="text_bg"
          :style="{ backgroundImage: 'url(' + mechanismtext + ')' }"
        >
          <div>共享</div>
        </div>
      </div>
      <div class="fotertext" style="margin-top: 50px">
        共建机制：所有人都可参与共同建设;
      </div>
      <div class="fotertext">
        共治机制：所有人都可参与共同治理;关于众议院<span
          style="
            background: linear-gradient(to right, #3a8ee6, #66b1ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          "
          >【此参考美国政治制度及国际治理，并在此基础上再加完善】;</span
        >
      </div>
    </div>
  </div>
</template>

<script>
import headerNav from "./headerNav.vue";
export default {
  components: {
    headerNav,
  },
  data() {
    return {
      mechanismbg: require("@/assets/img/星球机制bg.png"),
      mechanismtext: require("@/assets/img/星球机制文本框bg.png"),
    };
  },
};
</script>
<
<style lang="less" scoped>
.section {
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  touch-action: none;
  transform: translate3d(0px, 0px, 0px);
  transition: transform 700ms ease 0s;
}
.headertext {
  color: #fff;
  font-size: 30px;
  padding-top: 12%;
  padding-left: 10%;
}
.mainitem {
  display: flex;
  justify-content: space-evenly;
  margin-left: 8%;
  margin-right: 8%;
  margin-top: 30px;
}
.text_bg {
  color: #fff;
  flex: 1;
  height: 185px;
  margin: 0 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.text_bg div {
  font-weight: 700;
  display: flex;
  font-size: 50px;
  color: #d7dbf8;
  height: 185px;
  flex-direction: column-reverse;
  justify-content: center;
  text-align: center;
}
.fotertext {
  color: #c7c8c9;
  font-size: 18px;
  line-height: 45px;
  margin-left: 10%;
}

@media (max-width: 992px) {
  .section {
    background-size: cover;
    background-position: center;
  }

  .fotertext {
    margin-left: 0;
    padding: 0 20px;
    line-height: 35px;
  }
}

@media (min-width: 992px) {
  .mainitem {
    .text_bg {
      margin: 0;
      & + .text_bg {
        margin-left: 20px;
      }
    }
  }
}

@media (max-width: 576px) {
  .mainitem {
    flex-wrap: wrap;
    .text_bg {
      width: 100%;
      flex: unset;
      height: 100px;
      & + .text_bg {
        margin-top: 15px;
      }
      div {
        height: 100px;
      }
    }
  }
  .section {
    background-size: cover;
    background-position: left;
  }

  .fotertext {
    margin-left: 0;
    padding: 0 20px;
    line-height: 35px;
  }
}
</style>
